package com.tsunami.authority.dto.auth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @Classname RoleAuthoritySaveDTO
 * @Description TODO
 * @Date 2021-11-01 17:28
 * @Created by lx
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "RoleAuthorityQueryDTO", description = "角色的资源")
public class RoleAuthorityQueryDTO implements Serializable {
    /**
     * 菜单ID
     * #tnm_auth_menu
     */
    @ApiModelProperty(value = "资源ID")
    private List<Long> menuIdList;

    /**
     * 资源id
     * #tnm_auth_resource
     */
    private List<Long> resourceIdList;

    /**
     * 角色id
     * #tnm_auth_role
     */
    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色id不能为空")
    private Long roleId;
}
